package com.jiangy.oauth2login;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.web.DefaultSecurityFilterChain;

/**
 * @author jiangy
 */
@SpringBootApplication
public class Oauth2LoginApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Oauth2LoginApplication.class, args);
        DefaultSecurityFilterChain bean = context.getBean(DefaultSecurityFilterChain.class);
        bean.getFilters().forEach(filter -> System.out.println(filter.getClass().getName()));
    }

}
